<!--
 @Author: libing/makeup1122
 @Email: makeup1123@163.com
 @Date: "2020-03-06 23:45:19"
-->
<template>
  <v-select
    :items="tagsList"
    :value="value"
    @input="inputHandle"
    loader-height="2"
    chips
    :menu-props="{}"
    label="选择用户标签"
    item-text="name"
    item-value="id"
  />
</template>
<script>
export default {
  name: 'WxTagsSelect',
  components: {},
  props: {
    value: Number
  },
  data: function () {
    return {
    }
  },
  created: function () {
    this.$store.dispatch('getTags')
  },
  computed: {
    tagsList: function() {
      return this.$store.state.wxtags.tags
    }
  },
  methods: {
    inputHandle(tag) {
      this.$emit('input', tag)
    }
  }
}
</script>
<style scoped>
</style>
